﻿#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
	int a;
	int n = 0;
	int i = 0;
	int j = 0;
	while (scanf("%d", &a) != EOF)
	{
		//打印上半部分
		for (n = 1; n <= a / 2; n++)
		{
			for (i = 1; i < n; i++)
				printf(" ");
			printf("*");
			for (j = 0; j < a - 2 * n; j++)
				printf(" ");
			printf("*");
			printf("\n");
		}
		//奇数打印中间部分
		if (a % 2 != 0)
		{
			for (i = 0; i < a / 2; i++)
				printf(" ");
			printf("*\n");
		}

		//打印下半部分
		for (n = a / 2; n >= 1; n--)
		{
			for (i = 1; i < n; i++)
				printf(" ");
			printf("*");
			for (j = 0; j < a - 2 * n; j++)
				printf(" ");
			printf("*");
			printf("\n");
		}
	}

	return 0;
}